feat(UI): add some features#1248
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR removes Ant Design components library and rewrites code-related layout components to use custom/Radix UI components instead. Key changes include removing Ant Design dependency, refactoring layout components to use Flexbox/CSS classes, and improving issue/MR list pagination with separate state management for open/closed items.
- Removed Ant Design (
antd) library dependency from workspace and package.json - Rewrote code view layouts replacing Ant Design's
LayoutandFlexcomponents with native CSS classes - Refactored pagination system to separate open/closed state management for issues and merge requests
Reviewed Changes
Copilot reviewed 15 out of 18 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| pnpm-workspace.yaml | Removed antd catalog entry and fixed quote consistency |
| package.json | Removed @ant-design/icons and antd dependencies |
| [org]/mr/[id].tsx | Added comment-aware close/reopen functionality and styling fixes |
| code/tree/[...path]/index.tsx | Replaced Ant Design Layout/Flex with native CSS classes |
| code/blob/[...path].tsx | Replaced Ant Design components with native div elements |
| components/MrView/index.tsx | Enhanced pagination with separate state for open/closed MRs |
| Issues/utils/store.tsx | Added separate pagination atoms for different states |
| Issues/Pagenation.tsx | Made Pagination component generic with configurable state |
| Issues/IssuesContent.tsx | Implemented separate pagination state management |
| Issues/IssueDetailPage.tsx | Added comment-aware issue close functionality |
| CodeView/BlobView/CodeContent.tsx | Replaced Ant Design components with react-hot-toast |
Files not reviewed (1)
- moon/pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (1)
benjamin-747
approved these changes
Jul 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
移除了antd组件库
重写code相关布局代码
注释CodeContent中与dropdown相关代码
移除open | close持久化逻辑
分离pagination中close | open存储对象
修复issue mr列表中白屏问题
重写issuelist item显示UI(评论数量与是否显示assignee)